//引入封装好的uni.http
import { http } from "@/utils/http";

//引入类型约束
import type { category1Response } from "@/types/category";

/**
 * 分类页面的相关请求函数
*/

//获取一级分类
export const reqCategory1 = () => {
    return http<category1Response[]>({
        url:"/category/top",
        method:"GET"
    })
}